package com.syg.cycle;

import org.springframework.beans.factory.annotation.Lookup;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author ps
 */
@Component
@Scope(value = BeanDefinition.SCOPE_PROTOTYPE)
public class CycleB {
    @Resource
    public CycleA cycleA;

    @Lookup
    public CycleA getCycleA() {
        return cycleA;
    }

    public void setCycleA(CycleA cycleA) {
        this.cycleA = cycleA;
    }
}
